<!DOCTYPE html>
<html>
<head>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"/>
    <meta charset="UTF-8">
    <link href="/css/vendor/common.css" rel="stylesheet" type="text/css">
    <link href="/css/vendor/cmp-controls.css" type="text/css" rel="stylesheet">
    <link href="/css/vendor/firmware-download.less" rel="stylesheet/less" type="text/css">
    <script src="/js/less.min.js"></script>
    <title>飞马测试固件下载中心</title>
</head>
<body>
<main>
    <header>
        <div class="center-wrap">
            <div class="logo-1 center-v"><a href="/firmware-download-list.html"></a></div>
            <div class="logo-2"></div>
        </div>
    </header>
    <div class="pwd-wrap center-vh">
        <div class="pwd-title"><P>请输入密码</P></div>
        <input type="password" class="pwd-text" id="password">
        <p class="button" onclick="logIn()">进入</p>
    </div>
</main>
</body>
<script src="/js/jquery-3.2.1.min.js"></script>
<script src="/js/vendor/common.js"></script>
<script src="/js/vendor/cmp-controls.js"></script>
<script>

    function logIn() {
        feimaPost("/firmware/loginFirmwareCenter", {
            "password": $("#password").val()
        }, function (result) {
            if(result.status==0){
                var id=getQueryString("id");
                if(id){
                    window.location.href = "/firmware/firmwareDetail?id="+id;
                }else{
                    window.location.href = "/firmware/firmwareDownloadList";
                }

            }
        })
    }
</script>
</html>